projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e6256d
)
bootm: set max decompression size for LZO
author
Kees Cook
<
[email protected]
>
Tue, 15 Apr 2014 17:28:12 +0000
(10:28 -0700)
committer
Tom Rini
<
[email protected]
>
Fri, 18 Apr 2014 15:43:36 +0000
(11:43 -0400)
The LZO decompressor wasn't initializing the maximum output size, which
meant it would fail to decompress most of the time.
Reported-by: Matthias Weißer <
[email protected]
>
Signed-off-by: Kees Cook <
[email protected]
>
Tested-by: Matthias Weißer <
[email protected]
>
Acked-by: Simon Glass <
[email protected]
>
common/cmd_bootm.c
patch
|
blob
|
history
diff --git
a/common/cmd_bootm.c
b/common/cmd_bootm.c
index 9751edc9076121db4680fa91cc606c3ae4369804..c243a5bd78a92ec55fb7d8f2feefe51f7fc9589a 100644
(file)
--- a/
common/cmd_bootm.c
+++ b/
common/cmd_bootm.c
@@
-453,7
+453,7
@@
static int bootm_load_os(bootm_headers_t *images, unsigned long *load_end,
#endif /* CONFIG_LZMA */
#ifdef CONFIG_LZO
case IH_COMP_LZO: {
- size_t size;
+ size_t size
= unc_len
;
printf(" Uncompressing %s ... ", type_name);